<template>
    <view class="nfrDetail">
        <image v-for="(item,index) in data" :src="item" mode="widthFix"></image>
    </view>
</template>

<script>
    import {
    	getCardId,
    } from '@/api/api-v1-2.js'
    export default {
        data() {
            return {
                id: '',
                data: []
            }
        },
        onLoad(e) {
            this.id = e.id
            console.log('id',this.id)
            this.getDetail()
        },
        methods: {
            // 获取详情
            getDetail(){
                getCardId(this.id).then(res => {
                	console.log(res)
                	this.data = res.result
                    console.log('this.data.castingMaterials',this.data.castingMaterials)
                })
            },
        }
    }
</script>

<style scoped>
.nfrDetail{
    width: 100%;
}
.nfrDetail image{
    width: 100%;
}
</style>
